<!doctype html>
<html>

<head>
	<meta charset="UTF-8">
	<title>完成付款</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link href="../css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../css/style.css" />
	<link rel="stylesheet" href="../css/iconfont.css" />
	<link rel="stylesheet" href="../css/wallet.css" />
</head>

<body>
	<nav class="mui-bar mui-bar-tab">
		<a id="cut_cd_1" class="mui-tab-item" href="http://127.0.0.1:8020/call2.html?foot_active=1"><span class="mui-icon iconfont icon-dianhua"></span><span class="mui-tab-label">电话</span></a>
		<a id="cut_cd_2" class="mui-tab-item mui-active" href="http://127.0.0.1:8020/index.html?foot_active=2"><span class="mui-icon  iconfont icon-shouye"></span><span class="mui-tab-label">首页</span></a>
		<a id="cut_cd_3" class="mui-tab-item" href="http://127.0.0.1:8020/shoplist.html?foot_active=3"><span class="mui-icon iconfont icon-fujin"></span><span class="mui-tab-label">附近</span></a>
		<a id="cut_cd_4" class="mui-tab-item" href="http://127.0.0.1:8020/member/index.html?foot_active=4"><span class="mui-icon iconfont icon-huiyuan"></span><span class="mui-tab-label">我的</span></a>
	</nav>
	<div class="mui-content">
		<div class="fukc_top">
			<div class="iconfont icon-xuanze"></div>
			<p>支付成功</p>
		</div>
		<div class="fukc_djh clearfix">
			<span class="left">单据号</span>
			<span class="right" id='sn'></span>
		</div>
		<div class="fukc_xq clearfix">
			<div class="left">付款详情</div>
			<div class="right">
				<p class="clearfix">
					<Span class="pleft" id='pay_model'><em id="pay"></em>￥<em id="score"></em>鼓励金</Span>
					<span class="pright"><em id='pay_model_money'></em></span>
				</p>
			</div>
		</div>
			<div style="text-align: center;width: 100%;margin: 0 auto;color: #fff;"><button type="button"  class="btn btn-danger"><a id="btn_ok" href="#">确定</a></button></div>
	
	</div>
</body>
</html>
<script src="../js/mui.min.js"></script>

<script type="text/javascript" src="../js/date.js"></script>

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/layer/layer.min.js"></script>
<script type="text/javascript" src="../js/app.js"></script>
<script>
	$(function(){
		$.ajax({
			type:"post",
			data:{
				sn:getUrlParam("sn")
			},
			url: APP.api_url + 'wallet/get_paylog',
			success:function(data){
				var log=data.data;
				if(data.code==200){
					$("#sn").text(getUrlParam("sn"));
					$("#pay").text(log['price']);
					$("#btn_ok").attr("href","../shop.html?store_id="+log['tid']);
					if(log['score']&&log['score']>0){
						$("#score").text("-"+log['score']);
					}else{
						$("#score").text('获赠'+log['zs_score']);
					}
				}
				
			}
		});
		
	})
	
</script>